﻿<BSContainer Container="Container.Fluid" Class="d-flex" PaddingLeftAndRight="Padding.ExtraSmall">
    <BSDropdown>
        <Toggler>
            <BSToggle IsButton="true" Color="BSColor.Dark" IsOutlined="true">Dropdown</BSToggle>
        </Toggler>
        <Content>
            <BSDropdownItem Url="javascript:void(0);">Action</BSDropdownItem>
            <BSDropdownItem Url="javascript:void(0);">Another action</BSDropdownItem>
            <BSDropdownItem IsDivider="true"/>
            <BSDropdownItem Url="javascript:void(0);">Something else here</BSDropdownItem>
        </Content>
    </BSDropdown>
    <BSInput InputType="InputType.Search" placeholder="Search" @bind-Value="_search" @bind:after="PerformSearch"/>
    <BSButton Class="bi bi-search" Color="BSColor.Dark"/>
</BSContainer>

@code
{
    string _search;

    Task PerformSearch()
    {
        return Task.CompletedTask;
    // ... do something asynchronously with 'searchText' ...
    }
}